<?php
/**
 * Created by PhpStorm.
 * User: 冯轲
 * Date: 2017-12-13
 * Time: 11:59
 */
namespace app\home\controller;

use think\Controller;
use think\Db;
use think\Session;


class Comments extends Controller
{
  public  function postadd()
  {

//      $request=$this->request;
//      $res=$request->except('action');
//      echo '<pre>';
//      print_r($res);
//      exit;
//      $goods_id=$res['goods_id'];
//      $user_id=$res['user_id'];
//      $ress=Db::table('tp_comments')->insert($res);
//      echo $ress;
//     if($ress)
//     {
//         Db::table('tp_orders')->where('user_id',$res['user_id'])->update(['status'=>'5']);
//         exit;
//         return $this->redirect('/payment/index',['order_id'=>$order_id]);
//     }
  }
}